home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
pcboard
/
prfl200.zip
/
SYSOP.PPE
(
.txt
)
< prev
Wrap
PCBoard Programming Language Executable
|
1994-06-16
|
4KB
|
260 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
;------------------------------------------------------------------------------
If (Exist(PPEPath() + "PROFILE.CFG")) Then
FOpen 1, PPEPath() + "PROFILE.CFG", 0, 0
FGet 1, STRING004
FGet 1, STRING005
FGet 1, STRING006
FClose 1
If (Ferr(1)) Then
PrintLn "Error opening Configuration File. Inform SysOp Immediately!"
Endif
Else
PrintLn "Configuration file does not exist. This program will not run without"
PrintLn "the 'PROFILE.CFG' file in the same directory as the 'PROFILE.PPE'."
End
Endif
Cls
If (Exist(PPEPath() + "SysOp.mnu")) DispFile PPEPath() + "SysOp.mnu", 4 + 2 + 1
InputStr "SysOp Command", STRING002, 14, 1, "12qQ", 2 + 4 + 128
If ((Upper(STRING002) == "Q") || (STRING002 == "")) Then
Goto LABEL005
Else
Select Case (STRING002)
Case 1
Goto LABEL001
Case 2
Goto LABEL002
Endif
End Select
:LABEL001
Cls
If (Exist(PPEPath() + "CONVERT.PPE")) Then
Call PPEPath() + "Convert.PPE"
Else
PrintLn "Convert file missing. Inform the SysOp Immediately."
Endif
End
:LABEL002
Delete STRING006 + "\List.dat"
Newlines 3
Print "@X0DReading Index@X0F--" + STRING003
If (Exist(STRING006 + "\INDEX-A")) Then
STRING003 = "A"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-B")) Then
STRING003 = "B"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-C")) Then
STRING003 = "C"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-D")) Then
STRING003 = "D"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-E")) Then
STRING003 = "E"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-F")) Then
STRING003 = "F"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-G")) Then
STRING003 = "G"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-H")) Then
STRING003 = "H"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-I")) Then
STRING003 = "I"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-J")) Then
STRING003 = "J"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-K")) Then
STRING003 = "K"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-L")) Then
STRING003 = "L"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-M")) Then
STRING003 = "M"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-N")) Then
STRING003 = "N"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-O")) Then
STRING003 = "O"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-P")) Then
STRING003 = "P"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-Q")) Then
STRING003 = "Q"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-R")) Then
STRING003 = "R"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-S")) Then
STRING003 = "S"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-T")) Then
STRING003 = "T"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-U")) Then
STRING003 = "U"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-V")) Then
STRING003 = "V"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-W")) Then
STRING003 = "W"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-X")) Then
STRING003 = "X"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-Y")) Then
STRING003 = "Y"
Gosub LABEL003
Endif
If (Exist(STRING006 + "\INDEX-Z")) Then
STRING003 = "Z"
Gosub LABEL003
Endif
Newlines 2
PrintLn "List Data file has been recreated."
End
:LABEL003
Backup 1
Print "@X0C" + STRING003
FOpen 1, STRING006 + "\Index-" + STRING003, 2, 0
:LABEL004
FGet 1, STRING001
If (Left(STRING001, 16) == "Version 2.0 Data") Then
Goto LABEL004
Endif
If (Left(STRING001, 10) == "Dummy Name") Then
PrintLn "Data is not 2.0 Data. Please Convert it First!"
End
ElseIf (STRING001 == "") Then
FClose 1
FClose 2
Return
Else
FAppend 2, STRING006 + "\List.dat", 1, 3
FPutLn 2, Left(Mixed(STRING001), 25)
Goto LABEL004
Endif
:LABEL005
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 5 End
; 2 Cls
; 46 Goto
; 26 Let
; 2 Print
; 6 PrintLn
; 36 If
; 1 DispFile
; 2 FOpen
; 1 FAppend
; 3 FClose
; 4 FGet
; 1 FPutLn
; 1 Delete
; 1 InputStr
; 26 Gosub
; 1 Return
; 2 Newlines
; 1 Call
; 1 Backup
;
;
; ■ Functions used :
;
; 42 +
; 7 ==
; 35 !
; 1 ||
; 1 Upper()
; 3 Left()
; 1 Ferr()
; 6 PPEPath()
; 29 Exist()
; 1 Mixed()
;
;------------------------------------------------------------------------------
;
; Analysis flags : C
;
; C - Call child PPE ■ 3
; This is usually normal, but may be a tricky way to launch some
; sysop-only commands.
; ■ Search for : CALL
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 33 If/Then or If/Then/Else
; 1 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------